package com.company.project.modular.system.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.company.project.modular.system.model.Standard;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lsf
 * @since 2018-10-30
 */
public interface StandardMapper extends BaseMapper<Standard> {
    /*根据standardId查询一条记录并且更新standard表,将文件表的编号存进去*/
    Standard findAll(@Param("id") String id);

    String findByAuditName(@Param("standardCode") String standardCode);

    List<String> findByCode12(@Param("standardType") int standardType);

    Standard findByCodeOne(@Param("standardCodeOne") String standardCodeOne);

    int findByDocId(@Param("id") Integer id);

    List<Standard> findByMaxNumber();

    /*查询standard*/
    List<Standard> findByStandar();

    List<String> findByStandarCode();

    List<String> findByStandardName();

    List<Map<String,Object>> list();

    List<Standard> selectByAll(@Param("useCode") String useCode);
}
